'use strict'

// 根据命令配置URL
let params = process.argv[2]
// 默认URL
let baseUrl = '"http://192.168.1.155:8091"';
let mqttUrl = '"ws://192.168.0.62:9555/mqtt"';
switch (params) {
  // 测试线上
  case 'test':
    baseUrl = '"http://192.168.1.67:9001"';
    break;
  // 正式线上
  case 'prod':
    baseUrl = '"http://121.4.72.232:9001"';
    mqttUrl = '"ws://47.99.82.192:9555/mqtt"';
    break;
  default:
  // ...
}

module.exports = {
  NODE_ENV: '"production"',
  BASE_URL: baseUrl,
  MQTT_URL: mqttUrl,
}
